CC = gcc
LDFLAGS = -lcunit
TARGETS = bst_unittest

SRCDIR = .
OBJDIR = build

CFLAGS = -Wall -g

SRCS := $(wildcard $(SRCDIR)/*.c)
OBJS := $(SRCS:.c=.o)

$(TARGETS): $(OBJS)
	$(CC) ${CFLAGS} $^ -o $@ ${LDFLAGS}
$(%.o): %.c
	$(CC) ${CFLAGS} $< -o $@


clean:
	@rm ${OBJS} ${TARGETS} 
.PHONY: clean